package org.jboss.as.quickstarts.login.stripes;

import net.sourceforge.stripes.action.ActionBean;
import net.sourceforge.stripes.action.ActionBeanContext;

/**
 * @author Gregory Rushton, gregory.rushton@gmail.com
 *         Date: 9/7/11
 *         Time: 8:55 AM
 */
public abstract class BaseActionBean implements ActionBean {

    public static final String INDEX_JSP = "/index.jsp";
    public static final String STRIPES_LOGIN_JSP = "/stripes/login.jsp";
    public static final String STRIPES_VIEW_USERS_JSP = "/stripes/viewUsers.jsp";

    private LoginContext context;

    @Override
    public void setContext(ActionBeanContext context) {
        this.context = (LoginContext) context;
    }

    @Override
    public LoginContext getContext() {
        return context;
    }

}
